interface RoleData {
  createTime: string
  updateTime: string
  id: number
  roleName: string
  remark: string
}

interface ResponseData {
  code: number
  message: string
  ok: true
}

export interface RoleInfoResponseData extends ResponseData {
  data: {
    records: RoleData[]
    total: number
    size: number
    current: number
    pages: number
    searchCount?: boolean
  }
}

interface PermissionInfo {
  createTime: string
  updateTime: string
  id: number
  name: string
  pid: number
  code: string
  toCode: string
  type: number
  status: string
  level: number
  children: PermissionList
  select: boolean
}

export type PermissionList = PermissionInfo[]

export interface PermissonListResponseData extends ResponseData {
  data: PermissionList
}
